<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>

    </title>
</head>
<body>

<div shiro:authenticated=>

    aaaa
</div>


<div shiro:notAuthenticated>

   bbbb
</div>





<div th:if="${msg}">
   [[${msg}]]
</div>
    <form th:attr="method='post',action='/login'">

        <input th:attr="type='text',name='username'"  />
        <input th:attr="type='text',name='password'"  />
        <button th:attr="type='submit'" th:text="login"></button>
    </form>

</body>
</html>